﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000019 RID: 25
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AcceptMainMissionScRsp : IMessage<AcceptMainMissionScRsp>, IMessage, IEquatable<AcceptMainMissionScRsp>, IDeepCloneable<AcceptMainMissionScRsp>, IBufferMessage
	{
		// Token: 0x1700003F RID: 63
		// (get) Token: 0x060000F5 RID: 245 RVA: 0x00004311 File Offset: 0x00002511
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AcceptMainMissionScRsp> Parser
		{
			get
			{
				return AcceptMainMissionScRsp._parser;
			}
		}

		// Token: 0x17000040 RID: 64
		// (get) Token: 0x060000F6 RID: 246 RVA: 0x00004318 File Offset: 0x00002518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AcceptMainMissionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000041 RID: 65
		// (get) Token: 0x060000F7 RID: 247 RVA: 0x0000432A File Offset: 0x0000252A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AcceptMainMissionScRsp.Descriptor;
			}
		}

		// Token: 0x060000F8 RID: 248 RVA: 0x00004331 File Offset: 0x00002531
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionScRsp()
		{
		}

		// Token: 0x060000F9 RID: 249 RVA: 0x00004339 File Offset: 0x00002539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionScRsp(AcceptMainMissionScRsp other) : this()
		{
			this.mainMissionId_ = other.mainMissionId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060000FA RID: 250 RVA: 0x0000436A File Offset: 0x0000256A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionScRsp Clone()
		{
			return new AcceptMainMissionScRsp(this);
		}

		// Token: 0x17000042 RID: 66
		// (get) Token: 0x060000FB RID: 251 RVA: 0x00004372 File Offset: 0x00002572
		// (set) Token: 0x060000FC RID: 252 RVA: 0x0000437A File Offset: 0x0000257A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x17000043 RID: 67
		// (get) Token: 0x060000FD RID: 253 RVA: 0x00004383 File Offset: 0x00002583
		// (set) Token: 0x060000FE RID: 254 RVA: 0x0000438B File Offset: 0x0000258B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060000FF RID: 255 RVA: 0x00004394 File Offset: 0x00002594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AcceptMainMissionScRsp);
		}

		// Token: 0x06000100 RID: 256 RVA: 0x000043A2 File Offset: 0x000025A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AcceptMainMissionScRsp other)
		{
			return other != null && (other == this || (this.MainMissionId == other.MainMissionId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000101 RID: 257 RVA: 0x000043E0 File Offset: 0x000025E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000102 RID: 258 RVA: 0x00004438 File Offset: 0x00002638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000103 RID: 259 RVA: 0x00004440 File Offset: 0x00002640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000104 RID: 260 RVA: 0x0000444C File Offset: 0x0000264C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000105 RID: 261 RVA: 0x000044A8 File Offset: 0x000026A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000106 RID: 262 RVA: 0x00004500 File Offset: 0x00002700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AcceptMainMissionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000107 RID: 263 RVA: 0x00004550 File Offset: 0x00002750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000108 RID: 264 RVA: 0x0000455C File Offset: 0x0000275C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MainMissionId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000046 RID: 70
		private static readonly MessageParser<AcceptMainMissionScRsp> _parser = new MessageParser<AcceptMainMissionScRsp>(() => new AcceptMainMissionScRsp());

		// Token: 0x04000047 RID: 71
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000048 RID: 72
		public const int MainMissionIdFieldNumber = 13;

		// Token: 0x04000049 RID: 73
		private uint mainMissionId_;

		// Token: 0x0400004A RID: 74
		public const int RetcodeFieldNumber = 4;

		// Token: 0x0400004B RID: 75
		private uint retcode_;
	}
}
